package com.questionGenerator.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.questionGenerator.dto.req.AddQuestionReqDTO;
import com.questionGenerator.dto.req.QuestionReqDTO;
import com.questionGenerator.dto.resp.QuestionRespDTO;
import com.questionGenerator.model.QuestionDO;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: usagi
 * @Date: 2024/04/18/23:53
 * @Description:
 */
public interface QuestionService extends IService<QuestionDO> {
    public IPage<QuestionRespDTO> queryQuestionByCondition(QuestionReqDTO questionReqDTO);
    public Integer queryCountByKnowledgePoint(String point);
    public Integer queryCountByTypeId(Integer typeId);
    public Integer queryCountByLanguage(String language);
    boolean addNewQuestion(AddQuestionReqDTO addQuestionReqDTO);
}
